package cn.myjerry.net.tcp.chat.demo02;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

/**
 * 创建客户端 发送数据 + 接收数据
 * 写出数据： 输出流
 * 读取数据： 输入流
 * @author Jerry
 *
 */
public class Client {
	public static void main(String[] args) throws UnknownHostException, IOException {
		Socket client = new Socket("localhost", 9999);
		
		new Thread(new Send(client)).start();
		new Thread(new Receive(client)).start();
		
	}
}
